package com.atguigu.gmall.feign.user;


import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RequestMapping("/api/user")
@FeignClient("service-user")
public interface UserFeignClient {

    @PostMapping("/address/list")
    List<UserAddress> getCurrentUserAddress();
}
